package com.whut.userservice.domain.po;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("user_attention")
public class UserAttention {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long userId;

    private Long attentionId;

    private Integer isMutual;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableLogic(value = "0", delval = "1")
    @TableField("is_deleted")
    private Integer isDeleted;
}
